package com.jdbc;

/**
 * @author lenovo
 * @Description
 * @Date2025-2-26 13:50
 */
public class Users {
    private int id;
    private String username;
    private String password;
    private int points;
    private String phone_number;
    private int admin;  //0-普通用户，1-管理员

    public Users(int id, String username, String password, int points, String phone_number, int admin) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.points = points;
        this.phone_number = phone_number;
        this.admin = admin;
    }

    public Users() {

    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }

    public String getPhone_number() {
        return phone_number;
    }

    public void setPhone_number(String phone_number) {
        this.phone_number = phone_number;
    }

    public int getAdmin() {
        return admin;
    }

    public void setAdmin(int admin) {
        this.admin = admin;
    }

}


